﻿using Model;
using Newtonsoft.Json;
using System.Net.Http.Json;
using System.Text.Json.Serialization;

namespace Repository
{
    public class UserRepository : IUserRepository
    {
        public async Task<List<User>> Query()
        {
            await Task.CompletedTask;
            var data  = "[{\"Id\":18,\"userName\":\"张三\"}]";
            return JsonConvert.DeserializeObject<List<User>>(data)??new List<User>();
        }
    }
}
